package com.yjha.ai.demos.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class ModelController {
    @GetMapping("/index")
    public String index(Model model) {
        model.addAttribute("hello","hello welcome");
        return "/index";
    }

    @GetMapping("/upload")
    public String upload(Model model){
        model.addAttribute("hello","知识库");
        return "/upload";
    }

    @GetMapping("/dbChat")
    public String dbChat(Model model){
        model.addAttribute("hello","知识库");
        return "/dbChat";
    }


    @GetMapping("/dbChat2.0")
    public String dbChat2(Model model){
        model.addAttribute("hello","知识库");
        return "/dbChat2.0";
    }
}
